package com.swsc.xapp.utils;

import java.io.File;

import okhttp3.MediaType;

public class ConstantUils {

    public static final String DIR_BASE = android.os.Environment.getExternalStorageDirectory().getPath().concat("/FlygoData/");
    public static final String DIR_INFRARED = DIR_BASE.concat("INFRARED/");
    public static final String DIR_IMAGE_DATA_SET = DIR_BASE.concat("ImageDataset/");
    public static final String DIR_IMAGE_DATA_SET_TEMP = DIR_IMAGE_DATA_SET.concat("TEMP/");
    public static final String DIR_TILE = DIR_BASE.concat("tile/");
    public static final String DIR_INFRARED_TEMP = DIR_INFRARED.concat("TEMP/");
    public static final String SPILTOR_COMMA= ",";
    public static final String FILE_OFFLINE_DEFECT_CHANGE = DIR_BASE.concat("OFFLINE_DEFECT_CHANGE.json");
    public static final String FILE_OFFLINE_DEFECT_NEW = DIR_BASE.concat("OFFLINE_DEFECT_NEW.json");
    /***************************************************网络请求参数****************************************************/



    //展示页面地址
    public static final String defaultURL = "file:///android_asset/build/index.html";//正式环境


    /******************************************程序常量*****************************************************/
    //请求后台数据类型
    public static final MediaType JsonType = MediaType.parse("application/json; charset=utf-8");
    //更新文件保存地址
    public static final String fileSvaeDir = File.separator + "klay";
    //更新后展示页面地址
    public static final String hotUpdateURL = File.separator + "index" + File.separator + "index.html";
    public static final String stringTip = "请按照以下方法检查网络连接：\n\n" +
            "1.打开手机“设置”，使“WLAN”开关保持开启状态。\n" +
            "2.打开手机“设置”，使“数据网络”开关保持开启状态。\n" +
            "3.如果仍无法连接网络，请检查手机接入的“无线局域网”是否已接入互联网或咨询网络运营商。\n" +
            "4.设置完成后，点击“刷新”继续操作。";
    public static final String JS_FUNCTION_LOCATION_FLAG = "Privacy_Location";
    public static final String JS_FUNCTION_DEVICE_FLAG = "Device_Environment";
    public static final String JS_FUNCTION_CONTACTUI_FLAG = "Privacy_ContactUI";
    public static final String JS_FUNCTION_APPDATA_FLAG = "App_Data";//获取数据
    public static final String JS_FUNCTION_SAVE_APPDATA_FLAG = "Save_App_Data";//获取数据
    public static final String JS_FUNCTION_CONTACTS_FLAG = "Privacy_Contacts";
    public static final String JS_FUNCTION_SMS_FLAG = "Privacy_SMS";
    public static final String JS_FUNCTION_CHECK_NETWORK_FLAG = "SDK_TestNetWork";
    public static final String JS_FUNCTION_GET_PHOTO_FLAG = "Privacy_ImagePicker";
    public static final String JS_FUNCTION_UPDATE_IMAGE_FLAG = "SDK_UpLoadImage";
    public static final String JS_FUNCTION_CALL_FLAG = "Privacy_Call";
    public static final String JS_FUNCTION_HTTP_REQUEST_FLAG = "Http_Request"; //网络请求
    public static final String JS_FUNCTION_SEARCH_CONTACTS_FLAG = "Privacy_AuthorizationContacts"; //判断有没有查询联系人的权限
    public static final String JS_FUNCTION_OPEN_Browser = "JS_FUNCTION_OPEN_Browser"; // 打开浏览器
    public static final String JS_FUNCTION_OPEN_UVCCAMERA = "JS_FUNCTION_OPEN_UVCCAMERA"; //打开 UVCCAMERA


    public static final int FILE_SELECT_BY_ALBUM_CODE = 2001;//打开系统相册
    public static final int FILE_SELECT_BY_CAMERA_CODE = 2002;//打开系统相机
    public static final int READ_CONTACTS_REQUEST_CODE = 10011;//读取联系人
    public static final int OPEN_CONTACTS_REQUEST_CODE = 10012;//打开联系人列表
    public static final int OPEN_OCR_ID_CARD_REQUEST_CODE = 20013;//打开身份证OCR扫描
    public static final int OPEN_OCR_BANK_REQUEST_CODE = 20014;//打开银行卡CR扫描
    public static final int ACCESS_COARSE_LOCATION_REQUEST_CODE = 10013;//定位
    public static final int READ_PHONE_STATE_REQUEST_CODE = 10014;//手机信息
    public static final int GET_SMS_REQUEST_CODE = 10015;//短信记录
    public static final int GET_EXTERNAL_STORAGE_REQUEST_CODE = 10016;//外部存储
    public static final int GET_CALL_PHONE_REQUEST_CODE = 10017;//电话信息
    public static final int GET_CAMERA_REQUEST_CODE = 10018;//打开相机
    public static final int GET_CONTACT_REQUESR_CODE = 1001;//联系人选择返回Code
    public static final int GET_EXTERNAL_STORAGE_REQUEST_CODE_OCRID = 10019;//OCRID外部存储权限
    public static final int GET_CAMERA_REQUEST_CODE_OCRID = 10020;//OCRID相机权限
    public static final int GET_EXTERNAL_STORAGE_REQUEST_CODE_OCRBANK = 10021;//OCRBank外部存储权限
    public static final int GET_CAMERA_REQUEST_CODE_OCRBANK = 10022;//OCRBank相机权限
    public static final int OPEN_PAYACTIVITY_CODE = 10023;//打开支付页面
    public static final int OPEN_ERRORCTIVITY_CODE = 10024;//打开无网络页面
    public static final int OPEN_LIANACTIVITY_CODE = 10025;//打开连连支付页面
    public static final int OPEN_WEBACTIVITY_CODE = 10026;//打开WebView页面
    public static final int OPEN_LIVE_TEST_CODE = 10027;//活体检测
    public static final int GET_EXTERNAL_STORAGE_LINK_FACE = 10028;//活体检测存储权限
    public static final int GET_CAMERA_LINKN_FACE = 10029;//活体检测相机权限
    public static final int OPEN_UVCCAMERA = 10030; // 打开UVCCAMERA

    public static final String NOTIFY_CHANNEL_ID = "com.swsc.xapp.sflygo";

    public static final String CK_GLOBAL_API_URL = "baseApiUrl";
    public static final String CK_GLOBAL_FILE_URL = "baseFileUrl";
    public static final String CK_GLOBAL_TILE_URL = "baseTileUrl";
}
